<h1>
  <?php if ($becas->haveToPaginate()): ?>
        <?php echo link_to('«', 'becas/index?pagina='.$becas->getFirstPage()); ?>
        <?php echo link_to('<', 'becas/index?pagina='.$becas->getPreviousPage()); ?>                
            <?php //$links = $becas->getLinks();?>    
                <?php foreach ($becas->getLinks() as $beca):?>    
                    <?php echo ($beca == $becas->getPage()) ? $beca : link_to($beca, 'becas/index?pagina='.$beca);?>
                <?php endforeach; ?>
                <?php if($beca == $becas->getCurrentMaxLink()):?>
                    <?php echo link_to('>', 'becas/index?pagina='.$becas->getNextPage()); ?>
                    <?php echo link_to('»', 'becas/index?pagina='.$becas->getLastPage()); ?>       
                <?php endif;?>
           <?php endif;?>
    <!--SINO HAY PAGINAS DE REGISTROS-->
    <?php if (!$becas->haveToPaginate()): ?>
        <?php echo link_to('«', 'becas/index?pagina='.$becas->getFirstPage()); ?>
        <?php echo link_to('<', 'becas/index?pagina='.$becas->getPreviousPage()); ?>                
            <?php //$links = $becas->getLinks();?>    
            <?php foreach ($becas->getLinks() as $beca):?>
                <?php echo ($beca == $becas->getPage()) ? $beca : link_to($beca, 'becas/index?pagina='.$beca);?>
            <?php endforeach; ?>
            <?php if($beca == $becas->getCurrentMaxLink()):?>
                    <?php echo link_to('>', 'becas/index?pagina='.$becas->getNextPage()); ?>
                    <?php echo link_to('»', 'becas/index?pagina='.$becas->getLastPage()); ?>       
                <?php endif;?>
    <?php endif;?>
       
  <div class="pagination_desc">
     <strong><?php echo $becas->getNbResults() ?></strong> Becas
      <?php if ($becas->haveToPaginate()): ?>- pagina <strong>
             <?php echo $becas->getPage() ?> de <?php echo $becas->getLastPage() ?></strong>
       <?php endif;?>
  </div>
</h1>
